package com.example.controller;

import com.example.domain.Hero;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 本类用来演示:演示配置中心
 *
 * @Author 胡英俊
 * @Date 2022/7/26 23:29
 */
@RestController
public class testController {

    @Autowired
    public Hero hero;

    @GetMapping("getInfo")
    public String getInfo(){
        return hero.getName()+":"+hero.getAge()+":"+hero.getAddress();
    }
}
